import 'package:flutter/foundation.dart';
import 'package:flutter_volcengine/flutter_volcengine.dart';
import 'package:flutter_volcengine_provider/flutter_volcengine_provider.dart';

import 'shell.dart';

void main() {
  // runTraceApp((observer) {
  //   HttpOverrides.global = ApmHttpOverrides();
  //   enableVeApmLog(true);
  //   return MyApp(observer);
  // }, bindingInitHandler: CustomFlutterBinding.ensureInitialized);

  APMProvider.instance = FlutterVolcengine();
  APMProvider.instance.runVolcengineTraceApp(
    (navigatorObserver) {
      return MyApp(navigatorObserver);
    },
    enableLog: kDebugMode,
    monitorNetWork: true,
  );
}
